#pragma once
#include <nice2d/predef.h>
#include <nice2d/widgets/control.h>

class Dock
{
public:
    Dock();
    ~Dock();
public:
    void setDock(bool dock);
    bool isDock()const;

    void setHorizontalMode(HMode mode);
    HMode getHorizontalMode()const;

    void setVertical(VMode mode);
    VMode getVertical()const;

    void setXOffset(float offset);
    float getXOffset()const;

    void setYOffset(float offset);
    float getYOffset()const;

    void adjustControl(ControlPointer conttrol,const sf::Vector2f& parentSize);
private:
    std::unique_ptr<class DockData> data;
};
